#include<iostream>
using namespace std;
int ex2_4_3()
{
	int x,y;
	cin >> x;
	x = x * 1000 + x;
	y = x / 7 / 11 / 13;
	cout << y << endl;
	return 0;  
}